package file;
import java.io.File;
import java.io.IOException;

public class Test {
    public static void main(String[] args) {
        for (int i = 1; i < 11; i++) {
            File file = new File("./test"+i+".txt");
            if (file.exists()){
                file.delete();
            }else {
                try {
                    file.createNewFile();
                } catch (IOException e) {}
            }

        }

    }
}
